package com.ctshk.rpc.system.dto;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 组织架构+部门员工
 * </p>
 *
 * @author 谢诗宏
 * @since 2020-12-30
 */
@Data
@ApiModel(value="SysDepartmentEmployeeDTO对象", description="组织架构+部门员工")
public class SysDepartmentEmployeeDTO implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = " 菜单key")
    private Long key;

    @ApiModelProperty(value = " 组织名称")
    private String title;

    @ApiModelProperty(value = "父级部门")
    private Long parentId;

    @ApiModelProperty(value = "组织类型")
    private Long orgType;

    @ApiModelProperty(value = "优先级")
    private Integer sort;

    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    @ApiModelProperty(value = "成本中心编码")
    private String costCode;

    @ApiModelProperty(value = "状态 0无效;1有效")
    private int status;

    @ApiModelProperty(value = "部门员工")
    private List<UserDTO> employees;

    @ApiModelProperty(value = "子节点架构")
    private List<SysDepartmentEmployeeDTO> children;

    public Long getKey() {
        return this.key = this.id;
    }

}
